package util

import (
	"time"
)

// GenTimestamp generates 13-bit timestamp
func GenTimestamp() int64 {
	return time.Now().UnixNano() / 1e6
}

// Min returns the min value of int number a and b
func Min(a int, b int) int {
	if a < b {
		return a
	}
	return b
}
